import axios from 'axios'

export function add(query) {
  return axios.post(`${process.env.BASE_API}/admin/adcategory/add1`, query)
}

export function edit(query) {
  return axios.post(`${process.env.BASE_API}/admin/adcategory/edit1`, query)
}

export function remove(query) {
  return axios.post(`${process.env.BASE_API}/admin/adcategory/del1`, query)
}

export function fetchList(query) {
  return axios.post(`${process.env.BASE_API}/admin/adcategory/index`, query)
}
